let mongoose = require("mongoose");
module.exports = mongoose.model("registeredOrder", {

  // 关联就诊表
  patientID: {
    type: mongoose.SchemaTypes.ObjectId,
    ref: "patient",
    required: true,
  },
  // 科室
  department: {
    type: String,
    required: true,
  },
  //状态
  state: {
    type: Number,
    required: true,
  },
  //医生
  doctor: {
    type: String,
    required: true,
  },
  //日期
  date: {
    type: String,
    required: true,
  },
  //序号
  number: {
    type: String,
    required: true,
  },
  //价格
  price: {
    type: String,
    required: true,
  },
  time: {
    type: String,
    required: true
  },
  hospitalname: {
    type: String,
    required: true
  },
  position: {
    type: String,
    required: true
  }
});